home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12256 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  749 b 

  1. Path: nntp.pinc.com!usenet
  2. From: Ed <ed@learning.c.com>
  3. Newsgroups: comp.lang.c
  4. Subject: HELP with array declaration
  5. Date: Fri, 29 Mar 1996 16:25:55 -0800
  6. Organization: ---
  7. Message-ID: <315C7F92.30E18DFD@learning.c.com>
  8. NNTP-Posting-Host: 206.87.35.215
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.3.72 i486)
  13.  
  14. Hi,
  15.  
  16. I don't know why the compiler (gcc) complains given this code:
  17.  
  18.  
  19. ...
  20. ...
  21. #define STRING 81
  22.  
  23. void sort_insert(char a[][STRING], unsigned int numdata) {
  24.  
  25. ...
  26. ...
  27.  
  28. }
  29.  
  30.  
  31. The compiler says that "two or more data types in declaration of
  32. 'sort_insert' "
  33.  
  34.  
  35. I'm new to 'C' and I don't see anything wrong with the above
  36. declaration.
  37.  
  38.  
  39. Thans in advance.
  40.  
  41. ---
  42.